<?php

require_once(dirname(dirname(dirname(dirname(__FILE__)))) . "/engine/start.php");

$guid = (int) get_input('guid', 0);
$entity = get_entity($guid);
$result = elgg_view('river_wire/river_item', array('item' => $entity));

$river_item = get_river_items(get_loggedin_userid(), $entity->guid, '', $type = 'object',
	'thewire', '', 1);

$result = elgg_view('river/item/wrapper',array(
	'item' => $river_item,
	'body' => $result
));
echo $result;